package com.briup.auth.remote;

import com.briup.auth.pojo.SysUser;
import com.briup.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * system服务的远程调用
 */
@FeignClient("systemservice")
public interface UserRemote {

    @PostMapping("/sysUser/findUserByName")
    public Result<SysUser> selectUserByUsernameAndPassword(@RequestBody Map<String,String> map);
}